package com.example.second_home_work
//用户传入一个语言特性，返回一个具体语言
class ProgramExpert {
    fun getLanguage(feature: String): String {
        return when (feature) {
            "吃饭" -> "Java"
            "看电影" -> "Python"
            "打游戏" -> "JavaScript"
            "弹钢琴" -> "Haskell"
            else -> "I don't know"
        }
    }
}